const path = require("node:path");
console.log(path.join(__dirname, "test.txt"));
// Output: d:\wx\vue-learning-demo\module-demo\test.txt
console.log(path.resolve(__dirname, "test.txt"));
// Output: d:\wx\vue-learning-demo\module-demo\test.txt
console.log(path.extname(__filename));
// Output: .js
console.log(path.dirname(__filename));
